package com.lagou.dao;

import com.lagou.domain.ResourceCategory;

import java.util.List;

/**
 * @author 李树飞
 */
public interface ResourceCategoryMapper {

    /*
    资源查询所有
     */
    public List<ResourceCategory> findAllResourceCategory();

    /*
    添加资源分类
     */
    public void saveResourceCategory(ResourceCategory resourceCategory);

    /*
    修改资源分类
     */
    public void updateResourceCategory(ResourceCategory resourceCategory);

    /*
    根据资源分类id删除资源
     */
    public void deleteResourceByCategoryId(Integer categoryId);

    /*
    根据id删除资源分类
     */
    public void deleteResourceCategoryById(Integer id);
}
